<%@ Page language="c#" Inherits="Dimok.Aspx.Manager.Common.DocsList" EnableViewState="false" CodeFile="DocsList.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<TITLE>DocsList</TITLE>
<META HTTP-EQUIV="Expires" content="-1">
<META name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<META name="CODE_LANGUAGE" Content="C#">
<META name="vs_defaultClientScript" content="JavaScript">
<META name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK rel="stylesheet" type="text/css" href="/CSS/Outlook.css">
<STYLE>
.over {TEXT-DECORATION: underline}
</STYLE>
</HEAD>
<BODY onload="page_Load()" style="MARGIN-TOP: 15px; MARGIN-LEFT: 10px" onselectstart="event.returnValue=false">
<FORM id="Form1" method="post" runat="server" target="_self">
	<ASP:REPEATER Runat="server" id="rptDocs">
		<ITEMTEMPLATE>
				<INPUT TYPE="checkbox" NAME="FileName" VALUE='<%#System.IO.Path.GetFileNameWithoutExtension(Container.DataItem+"")%>' style="border:none">
				<SPAN over="true" classOver="over" style="CURSOR: default" onclick="this.previousSibling.previousSibling.click()"><%#System.IO.Path.GetFileNameWithoutExtension(Container.DataItem+"")%></SPAN>
				<BR>
		</ITEMTEMPLATE>
	</ASP:REPEATER>
	<INPUT type="hidden" runat="server" id="hdnApplID">
	<INPUT type="hidden" name="Type" value="pdf">
	<SPAN id="btnSubmitPDF" style="white-space:nowrap; MARGIN: 15px" onclick="doSubmit('pdf')" class="cb">
			<IMG SRC="/images/Buttons/Adobe1.gif" style="VERTICAL-ALIGN: middle" width="16" height="16"> Acrobat
	</SPAN>
	<!-- SPAN id="btnSubmitWord" style="white-space:nowrap;MARGIN: 15px" class="cb" onclick="doSubmit('word')">
		<IMG SRC="/images/Buttons/Word.gif" style="VERTICAL-ALIGN: middle"> Word
	</SPAN -->
</FORM>
<ASP:LITERAL Runat="server" ID="ltrCloseMe">
<SCRIPT language="javascript"></SCRIPT>
</ASP:LITERAL>
</BODY>
</HTML>
<SCRIPT language="javascript" src="/Include/common.js"></SCRIPT>
<SCRIPT language="javascript">
window.onblur = function(){showButtons(false)};
function page_Load(){
	document.attachEvent("onmouseover",mouseover);
	document.attachEvent("onmouseout",mouseout);
}
function doSubmit(docType){
	showButtons(true);
	Form1.Type.value = docType;
	for( var i = 0; i < Form1.FileName.length; i++ )
		if( Form1.FileName[i].checked )break;
	if( i == Form1.FileName.length ){
		alert("No document(s) was selected!");
		return false;
	}
	Form1.submit();
}
function showButtons(hide){
	//btnSubmitWord.disabled= hide && true;
	btnSubmitPDF.disabled= hide && true;
}
</SCRIPT>
